<form action="#" method="post" enctype="multipart/form-data">
    <table class="table table-striped table-hover table-bordered table-base">
        <tbody>
            <tr>
                <th style="text-align: right;">名称</th>
                <th>内容</th>
                <th>提示</th>
            </tr>
            {foreach name="configResult" item="item"}
            <tr>
                <td>{$item.label}</td>
                <td>
                {if $item.type eq 'radio'}
                    <label class="radio-inline myradio">
                        <input type="radio" name="{$item.item_key}"  value="1" {if $item.item_value eq '1'} checked="true" {/if} >&nbsp; 是
                    </label>
                    <label class="radio-inline myradio">
                        <input type="radio" name="{$item.item_key}"  value="0" {if $item.item_value eq '0'} checked="true" {/if} >&nbsp; 否
                    </label>
                {elseif $item.type eq 'select'}
                    <select name="{$item.item_key}">
                        {foreach name="item.box" key="name" item="value"}
                        <option value="{$value}" {if $item.item_value eq $value} selected {/if} >{$value}</option>
                        {/foreach}
                    </select>
                {elseif $item.type eq 'text'}
                    <input type="text" name="{$item.item_key}" value="{$item.item_value}" style="width:320px;" {if $item.item_key eq 'qq'} placeholder="形如 小美:123456,小丽:456789" {/if} >
                {elseif $item.type eq 'file'}
                    <input type="file" class="imgurl form-control" name="{$item.item_key}" size="18" style="width:240px;display:inline-block;height:40px;">
                    {if $item.item_value}
                    <img src="__static__/images/admin/yes.gif">
                    {else}
                    <img src="__static__/images/admin/no.gif">
                    {/if}
                {elseif $item.type eq 'textarea'}
                    <!-- umeditor -->
                    <link href="__static__/js/umeditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet">
					<script type="text/javascript" charset="utf-8" src="__static__/js/umeditor/third-party/template.min.js"></script>
					<script type="text/javascript" charset="utf-8" src="__static__/js/umeditor/umeditor.config.js"></script>
					<script type="text/javascript" charset="utf-8" src="__static__/js/umeditor/umeditor.min.js"></script>
					<script type="text/javascript" src="__static__/js/umeditor/lang/zh-cn/zh-cn.js"></script>
                    <script type="text/plain" id="{$item.item_key}" name="{$item.item_key}" style="width:780px;height:300px;">{$item.item_value}</script>
                    <script type="text/javascript">
                        //实例化编辑器
                        var um = UM.getEditor("{$item.item_key}");
                    </script>
                    <!-- /umeditor -->

                {/if}
                </td>
                <td>{$item.tip}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="table-responsive">
        <table class="table table-striped table-hover table-bordered table-base">
            <tbody>
            <tr>
                <td></td>
                <td>
                    <button class="btn btn-primary submit" type="submit">提交</button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</form>
<script type="text/javascript" src="__app__/admin/view/Change/wxConfig/wxConfig.js"></script>
